package com.business.bean.basic;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author fengjian E-mail: 9110530@qq.com
 * @version 创建时间：2019年9月21日
 */
@Setter
@Getter
@Table(name = "BAS_CAR", description = "车辆信息表")
public class CarBean extends ModelBean {

	@Column(pk = true, type = Type.定长文本, description = "车辆编号", canNull = false, size = 32, policy = "UUID")
	private String carID = null;

	@Column(type = Type.变长文本, description = "车辆名称", size = 30)
	private String carName = null;

	@Column(type = Type.变长文本, description = "车辆型号", size = 50)
	private String carModel = null;

	@Column(type = Type.变长文本, description = "车辆类型", size = 30)
	private String carType = null;

	@Column(type = Type.变长文本, description = "车牌号", size = 30)
	private String carNo = null;

	@Column(type = Type.变长文本, description = "发动机号", size = 30)
	private String engineName = null;

	@Column(type = Type.日期时间, description = "购买日期")
	private Date buyDate = null;

	@Column(type = Type.数字整型, description = "客座数量")
	private int seatSum = 0;

	@Column(type = Type.日期时间, description = "保险截止日期")
	private Date insuranceEndDate = null;

	@Column(type = Type.数字整型, description = "保险金额")
	private int insuranceMoney = 0;

	@Column(type = Type.变长文本, description = "保险说明", size = 250)
	private String description = null;

	@Column(type = Type.日期时间, description = "下次年检日期")
	private Date nextCheckDate = null;

	@Column(type = Type.数字整型, description = "行驶里程")
	private int mileage = 0;

	@Column(type = Type.日期时间, description = "下次保养日期")
	private Date nextMaintainDate = null;

	@Column(type = Type.数字整型, description = "下次保养里程")
	private int nextMaintainMileage = 0;

	/** 有效：1；结束：2 */
	@Column(type = Type.数字整型, description = "状态")
	private int status = 0;
}
